import request from '@/utils/request'

// 查询攻略推荐商品列表
export function listStrategyProduct(query) {
  return request({
    url: '/lipin/strategyProduct/list',
    method: 'get',
    params: query
  })
}

// 查询攻略推荐商品详细
export function getStrategyProduct(strategyProductId) {
  return request({
    url: '/lipin/strategyProduct/' + strategyProductId,
    method: 'get'
  })
}

// 新增攻略推荐商品
export function addStrategyProduct(data) {
  return request({
    url: '/lipin/strategyProduct',
    method: 'post',
    data: data
  })
}

// 修改攻略推荐商品
export function updateStrategyProduct(data) {
  return request({
    url: '/lipin/strategyProduct',
    method: 'put',
    data: data
  })
}

// 删除攻略推荐商品
export function delStrategyProduct(strategyProductId) {
  return request({
    url: '/lipin/strategyProduct/' + strategyProductId,
    method: 'delete'
  })
}
